/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.uba.fi.rsajapplet.view;

/**
 *
 * @author marcelo
 */
public class GeneratePPanel extends javax.swing.JPanel {

    /**
     * Creates new form GeneratePPanel
     */
    public GeneratePPanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        publicKeyPanel = new javax.swing.JPanel();
        publicKeyLabel = new javax.swing.JLabel();
        eLabel = new javax.swing.JLabel();
        nLabel = new javax.swing.JLabel();
        eValue = new javax.swing.JTextField();
        nValue = new javax.swing.JTextField();
        messageLabel = new javax.swing.JLabel();
        messageValue = new javax.swing.JTextField();

        publicKeyLabel.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N
        publicKeyLabel.setText("Clave Pública:");

        eLabel.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N
        eLabel.setText("e:");

        nLabel.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N
        nLabel.setText("n:");

        nValue.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nValueActionPerformed(evt);
            }
        });

        messageLabel.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N
        messageLabel.setText("Mensaje:");

        javax.swing.GroupLayout publicKeyPanelLayout = new javax.swing.GroupLayout(publicKeyPanel);
        publicKeyPanel.setLayout(publicKeyPanelLayout);
        publicKeyPanelLayout.setHorizontalGroup(
            publicKeyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(publicKeyPanelLayout.createSequentialGroup()
                .addGap(82, 82, 82)
                .addGroup(publicKeyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(messageLabel)
                    .addGroup(publicKeyPanelLayout.createSequentialGroup()
                        .addComponent(eLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(eValue, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(nLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(nValue, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(publicKeyLabel)
                    .addComponent(messageValue))
                .addContainerGap(158, Short.MAX_VALUE))
        );
        publicKeyPanelLayout.setVerticalGroup(
            publicKeyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(publicKeyPanelLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(publicKeyLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(publicKeyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(eLabel)
                    .addComponent(eValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(nLabel)
                    .addComponent(nValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addComponent(messageLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(messageValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(140, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(publicKeyPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(publicKeyPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void nValueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nValueActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_nValueActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel eLabel;
    private javax.swing.JTextField eValue;
    private javax.swing.JLabel messageLabel;
    private javax.swing.JTextField messageValue;
    private javax.swing.JLabel nLabel;
    private javax.swing.JTextField nValue;
    private javax.swing.JLabel publicKeyLabel;
    private javax.swing.JPanel publicKeyPanel;
    // End of variables declaration//GEN-END:variables
}
